<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>用户管理</title>
<link rel="stylesheet" type="text/css" href="__CSS__/main.css">
</head>
<body class="clear">
<!-- 头部区域 -->
<div id="nav_div">
	<!-- logo -->
	<img src="__IMG__/people.png" id="people">
	<h2 class="mesH">论坛后台管理</h2>
	<div class="mesWec">
		<span>欢迎您：{:session('aNick')}</span>
	</div>
</div>
<!-- 导航栏区域 -->
<div id="mesNavBar">
	<ul>
		<li><a href="{:url('mesDeal')}">帖子管理</a></li>
		<li><a href="{:url('deal/userDeal')}">用户管理</a></li>
		<li><a href="{:url('secDeal')}">版块管理</a></li>
		<li><a href="">回收站管理</a></li>
		<li><a href="">广告管理</a></li>
		<li><a href="">轮播图管理</a></li>
		<li><a href="{:url('admin/apa')}">修改密码</a></li>
		<li><a href="{:url('admin/alogOut')}">注销</a></li>
		<li><a href="">论坛前台</a></li>
	</ul>
</div>
<!-- 版块管理区域 -->
<div class="daohanglan" style="font-weight:bold">
	<div>用户管理</div>
	<form action="" method="post" enctype="multipart/form-data">
		<input type="text" style="margin-left:52%" name="find">
		<input type="submit" value="搜索" id="sousuo">
	</form>
</div>
<div class="mesForm">
	<form action="">
		<table style="margin:20px 0;width: 100%;">
			<tr>
				<td class="mesTdf" style="font-weight:bold">序号</td>
				<td class="mesTd" style="font-weight:bold">昵称</td>
				<td class="mesTd" style="font-weight:bold">电话</td>
				<td class="mesTd" style="font-weight:bold">邮箱</td>
				<td class="mesTd" style="font-weight:bold">头像</td>
				<td class="mesTd" style="font-weight:bold">用户权限</td>
				<td class="mesTd" style="font-weight:bold">操作</td>
			</tr>
			{volist name="mes" id='mesRow'}
			<tr>
				<td class="mesTdf">{$num++}</td>
				<td class="mesTd">{$mesRow.u_nick}</td>
				<td class="mesTd">{$mesRow.u_tel}</td>
				<td class="mesTd">{$mesRow.u_email}</td>
				<td class="mesTd"><img src="__ME__/{$mesRow.u_img}" style="height: 40px; width: 40px"></td>
				{compare name="$mesRow.u_power" value='0' type=eq}
				<td class="mesTd"><span style="color: red">不能登录</span><span>,</span><span style="color: red">不能评论</span></td>
				{else\}
				{compare name="$mesRow.u_power" value='1' type=eq}
				<td class="mesTd"><span style="color: green">正常登录</span><span>,</span><span style="color: red">不能评论</span></td>
				{else/}
				<td class="mesTd"><span style="color: green">正常登录,可以评论</span></td>
				{/compare}
				{/compare}
				<td class="mesTd">
					<a href="{:url('deal/userpower',['u_power'=>$mesRow.u_power,'u_nick'=>$mesRow.u_nick])}">修改权限</a>
				</td>
			</tr>
			{/volist}
		</table>
	</form>
</div>
</body>
</html>